package com.Android.jizhangla;

import android.app.Activity;
import android.content.Intent;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class index extends Activity {

	private Button indexView_zhichuButton;
	private Button indexView_shouruButton;
	private Button indexView_zhuanzButton;
	private Button indexView_zhanghuButton;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.index);

		findViewById();
		setListener();

	}

	private void findViewById() {
		indexView_zhichuButton = (Button) findViewById(R.id.bt_zhichu);
		indexView_shouruButton = (Button) findViewById(R.id.bt_shouru);
		indexView_zhuanzButton = (Button) findViewById(R.id.zhuanzhang);
		indexView_zhanghuButton = (Button) findViewById(R.id.zhanghu);
	}

	private OnClickListener zhichuListener = new OnClickListener() {

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			Intent intent = new Intent();
			intent.setClass(index.this, zhichu.class);
			startActivity(intent);
		}
	};
	private OnClickListener shouruListener = new OnClickListener() {

		@Override
		public void onClick(View arg0) {
			// TODO Auto-generated method stub
			Intent intent = new Intent();
			intent.setClass(index.this, shouru.class);
			startActivity(intent);
		}
	};
	private OnClickListener zhuanzListener = new OnClickListener() {

		@Override
		public void onClick(View arg0) {
			// TODO Auto-generated method stub
			Intent intent = new Intent();
			intent.setClass(index.this, zhuanz.class);
			startActivity(intent);
		}
	};
	private OnClickListener zhanghuListener = new OnClickListener() {

		@Override
		public void onClick(View arg0) {
			// TODO Auto-generated method stub
			// setContentView(zhanghu)
		}
	};

	private void setListener() {
		indexView_zhichuButton.setOnClickListener(zhichuListener);
		indexView_shouruButton.setOnClickListener(shouruListener);
		indexView_zhuanzButton.setOnClickListener(zhuanzListener);
		indexView_zhanghuButton.setOnClickListener(zhanghuListener);
	}



}
